package cn.new7as.cas5s.ui.easy.netapi;

import androidx.annotation.NonNull;

import com.google.gson.Gson;
import com.hjq.http.annotation.HttpHeader;
import com.hjq.http.config.IRequestApi;

import java.util.List;

import cn.new7as.cas5s.BuildConfig;

public class ShowPrepareApi implements IRequestApi {

        @NonNull
        @Override
        public String getApi() {
            return BuildConfig.APPX+ "/loan/reservationStatus";
        }


    @HttpHeader
    private String token;
    private String tradeNo;
    private int type=0;




    public ShowPrepareApi(String psad, String casd) {
        this.token = psad;
        this.tradeNo = casd;
    }

    public static class SaData {
        private List<SchildData> dataList;


        public Exception getException() {
            return exception;
        }

        public void setException(Exception exception) {
            this.exception = exception;
        }

        private Exception exception;

        public List<SchildData> getDataList() {
            return dataList;
        }

        public void setDataList(List<SchildData> dataList) {
            this.dataList = dataList;
        }



        public static class SchildData {
            private String content;
            private String time;
            private String name;
            private String TYPE;

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getTYPE() {
                return TYPE;
            }

            public void setTYPE(String TYPE) {
                this.TYPE = TYPE;
            }
        }

        @Override
        public String toString() {
            Gson gson = new Gson();
            return gson.toJson(this);
        }
    }

}

